<?php
namespace GRH\Model;

class Planning
{
    public $planning_id;
    public $employe_id;
    public $periode_id;
    public $journee;
    public $heure_entree;
    public $heure_sortie;
    public $nb_heure;
    public $code_activite_id;
    public $details_activite;
    public $repas;
    public $pause;
    public $type_planning;
    
    public function exchangeArray($data)
    {
        $this->planning_id          = isset($data['planning_id'])       ? $data['planning_id']      : null;
        $this->employe_id           = isset($data['employe_id'])        ? $data['employe_id']       : null;
        $this->periode_id           = isset($data['periode_id'])        ? $data['periode_id']       : null;
        $this->journee              = isset($data['journee'])           ? $data['journee']          : null;
        $this->heure_entree         = isset($data['heure_entree'])      ? $data['heure_entree']     : null;
        $this->heure_sortie         = isset($data['heure_sortie'])      ? $data['heure_sortie']     : null;
        $this->nb_heure             = isset($data['nb_heure'])          ? $data['nb_heure']         : null;
        $this->code_activite_id     = isset($data['code_activite_id'])  ? $data['code_activite_id'] : null;
        $this->details_activite     = isset($data['details_activite'])  ? $data['details_activite'] : null;
        $this->repas                = isset($data['repas'])             ? $data['repas']            : null;
        $this->pause                = isset($data['pause'])             ? $data['pause']            : null;
        $this->type_planning        = isset($data['type_planning'])     ? $data['type_planning']    : null;
    }
    
    public function getArrayCopy()
    {
        return get_object_vars($this);
    }
}